#coding:utf-8
import socket

sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
sock.connect(('144.168.62.173',8001))
while True:
    sends = raw_input('>>>')
    sock.send(sends)
    if sends == 'break':
        break
    recvs = sock.recv(512)
    print recvs
    if recvs == 'break':
        break
sock.close()
